//
//  GameService.h
//  YouthOlympic2014
//
//  Created by Li Yuhang on 14-7-1.
//  Copyright (c) 2014年 mitian. All rights reserved.
//

#import "BaseService.h"
#import "Game.h"
#import "SubGame.h"
#import "GameEvent.h"

@interface GameService : BaseService

- (void) getAllGames:(CompletionBlock)completion;


- (void) getAllSubGamesByGameId:(NSString *) gameId
                     completion:(CompletionBlock)completion;

//接口传过来的日期统一格式：20130816133000 年月日时分秒
/*
 *返回类型为
 *{
 *  "08:00":[
 *      GameEvent,GameEvent,GameEvent
 *  ],
 *  "13:00":[
 *      GameEvent,GameEvent
 *  ]
 *}
 *
 */
- (void) getGameEventsDictByGameId: (NSString*)gameId
                      andSubGameId: (NSString*) subgameId
                           andDate: (NSString*)gameDate
                        completion:(CompletionBlock)completion;

- (void) getGameEventsDictByPlaceId: (NSString*)placeId
                               andSubPlaceId: (NSString*) subplaceId
                                     andDate: (NSString*) gameDate
                         completion:(CompletionBlock)completion;

- (void) getGameEventsByPlaceId: (NSString*) placeId
                  andSubPlaceId: (NSString*) subplaceId
                        andDate: (NSString*) gameDate
                     completion: (CompletionBlock) completion;

//获取目前所有关注的gameeventid,用于显示赛事列表上哪些需要显示“已关注”、“关注”
- (NSSet*) getAllStaredEventIds;

///添加赛事到关注
- (NSInteger) addGameEventToSchedule:(GameEvent*) gameEvent;

///批量添加赛事到关注
- (NSInteger) addGameEventsToSchedule:(NSArray*) gameEvents;

@end
